#pragma once
#include "RenderFish.hpp"
#include <chrono>

class Timer
{
private:
	typedef std::chrono::high_resolution_clock::time_point time_point;
	//typedef std::chrono::time_point<std::chrono::steady_clock> time_point;
	time_point _start;
	time_point _end;
	string _label;
	bool _has_started = false;

public:
	Timer(string label);
    void set_label(string label);
    void reset();
    void begin();
    void end();
    void print() const;
    void end_and_print() { end(); print(); }
};

